package java_new_project;

import person.person;

public class boy extends person {
    public boy(String name, String gender, int age) {
        super(name, "man", age);
    }
    public void print(){
        System.out.println("boy的输出");
        System.out.println("姓名: "+name+" 性别: 男"+" 年龄: "+age);
    }
    public void Only_boy(String sport){
        System.out.println(name+" is playing "+sport);
    }
}
